#!/bin/bash
# test_multiple_connections.sh

PORT=8888
HOST=localhost

echo "开始测试服务器连接..."

# 测试10个连接
for i in {1..1000}; do
    echo "测试连接 $i"
    echo "time" | nc -w 1 $HOST $PORT
done

echo "测试完成"#
